<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script src="../static/axios-0.18.0.js"></script>
<script src="../static/jquery.min.js"></script>
<script src="../static/vue.js"></script>
<body>
<a href="/toAdd">添加</a>
<form method="post" th:action="@{/findAll}">
姓名：<input type="text" name="name" th:value="${name}">
     <input type="submit" value="搜索">
<table border="1" cellspacing="0">
    <tr>
        <td>编号</td>
        <td>姓名</td>
        <td>性别</td>
        <td>密码</td>
        <td>年龄</td>
        <td>电话</td>
        <td>操作</td>
    </tr>
    <tr th:each="user:${list}">
        <td th:text="${user.id}"></td>
        <td th:text="${user.name}"></td>
        <td th:text="${user.gender}"></td>
        <td th:text="${user.password}"></td>
        <td th:text="${user.age}"></td>
        <td th:text="${user.tel}"></td>
        <td>
            <a th:href="@{/findById(id=${user.id})}">修改</a>
            <a th:href="@{/del(id=${user.id})}">删除</a>
        </td>
    </tr>
</table>
</form>

</body>
</html>